/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.common.domain;


import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import io.swagger.annotations.ApiModelProperty;

public class BaseEntity implements Serializable {

    private static final long serialVersionUID = -6327717285499902205L;

    @ApiModelProperty(value = "主键", name = "", required = true)
    private String id;

    @ApiModelProperty(value = "数据添加人", name = "addUser")
    private String addUser;

    @ApiModelProperty(value = "数据修改人", name = "updateUser")
    private String updateUser;
    
    @ApiModelProperty(value = "数据添加人名称", name = "addUserName")
    private String addUserName;

    @ApiModelProperty(value = "数据修改人名称", name = "updateUserName")
    private String updateUserName;

    @ApiModelProperty(value = "添加时间", name = "addTime")
    private Date addTime;

    @ApiModelProperty(value = "修改时间", name = "updateTime")
    private Date updateTime;

    public BaseEntity() {
        super();
    }

    public BaseEntity(String signinName, Date time) {
        this.addUser = signinName;
        this.updateUser = signinName;
        this.addTime = time;
        this.updateTime = time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAddUser() {
        return addUser;
    }

    public void setAddUser(String addUser) {
        this.addUser = addUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public String getAddUserName() {
		return addUserName;
	}

	public void setAddUserName(String addUserName) {
		this.addUserName = addUserName;
	}

	public String getUpdateUserName() {
		return updateUserName;
	}

	public void setUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}

	public String toString() {
        return JSON.toJSONStringWithDateFormat(this, "yyyy-MM-dd HH:mm:ss", SerializerFeature.WriteMapNullValue);
    }

}
